package com.victor.entity.jingqu;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 景区表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "jingqulist")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Jingqulist {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 编号,

	@Column(name = "jqname", length = 50)
	private String jqname;// 景区名称,

	@Column(name = "jqprice", length = 50)
	private String jqprice;// 景区价格,

	@Column(name = "integral", length = 50)
	private String integral;// 积分兑换景区票价,

	@Column(name = "jqhdprice", length = 50)
	private String jqhdprice;// 景区活动价,

	@Column(name = "jqlevel", length = 50)
	private String jqlevel;// 景区级别,1-1a 2-2a 3-3a 4-4a 5-5a

	@Column(name = "jqjianjie", length = 50)
	private String jqjianjie;// 景区简介,

	@Column(name = "jqvoice_Chinese", length = 100)
	private String jqvoice_Chinese;// 语音简介中文
	
	@Column(name = "jqvoice_English", length = 100)
	private String jqvoice_English;// 语音简介英文

	@Column(name = "jqclassid", length = 50)
	private String jqclassid;// 景区类型id,

	@Column(name = "jqclass", length = 50)
	private String jqclass;// 景区类型,
	
	@Column(name = "position", length = 50)
	private String position;// 位置--全

	@Column(name = "province", length = 50)
	private String province;// 省

	@Column(name = "city", length = 50)
	private String city;// 市
	
	@Column(name = "position_area", length = 50)
	private String position_area;// 位置--区

	@Column(name = "position_street", length = 50)
	private String position_street;// 位置--街道

	@Column(name = "position_detailed", length = 50)
	private String position_detailed;// 位置--详细

	@Column(name = "position_remarks", length = 50)
	private String position_remarks;// 位置备注

	@Column(name = "jqlocation_lon", length = 50)
	private String jqlocation_lon;// 景区定位经度

	@Column(name = "jqlocation_lat", length = 50)
	private String jqlocation_lat;// 景区定位纬度

	@Column(name = "jqbeizhu", length = 50)
	private String jqbeizhu;// 景区备注,

	@Column(name = "jqtime", length = 50)
	private String jqtime;// 创建时间,

	@Column(name = "username", length = 50)
	private String username;// 账号,

	@Column(name = "password", length = 50)
	private String password;// 密码,

	@Column(name = "jqvideo", length = 50)
	private String jqvideo;// 景区视频,

	@Column(name = "hdflag", length = 50)
	private String hdflag;// 活动标识

	@Column(name = "ifgroupbuy", length = 50)
	private String ifgroupbuy;// 是否开启团购 0未开启 1已开启

	@Column(name = "groupbuypeoplenum", length = 50)
	private String groupbuypeoplenum;// 团购人数

	@Column(name = "ifreturnticket", length = 50)
	private String ifreturnticket;// 是否允许退票标志
	
	@Column(name = "tjflag", length = 50)
	private String tjflag;// 0-不推荐  1-推荐
	
	@Column(name = "picture", length = 50)
	private String picture;// 360图片
	
	@Column(name = "photo", length = 500)
	private String photo;// 景区封面图
	
	@Column(name = "score", length = 500)
	private String score;// 评分
	
//	@Transient
//	private String photo;// 后台列表图片

	@Transient
	private List<Jingqutupian> jingqutupians;// 景区图片list

	@Transient
	private List<Jingqujingdian> jingqujingdians;// 景区景点list

	@Transient
	private List<Jingqutickets> jingqutickets;// 景区门票list
	
	@Transient
	private String ifcollection;//是否收藏
	
	@Transient
	private String distance;//距离  km单位
}
